package com.bwie.common.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 拼团订单表
 * </p>
 *
 * @author liuxin
 * @since 2025-04-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_group_order")
@ApiModel(value="TGroupOrder对象", description="拼团订单表")
public class GroupOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "拼团订单唯一标识")
    @TableId(value = "group_order_id", type = IdType.AUTO)
    private Long groupOrderId;

    @ApiModelProperty(value = "拼团订单编号")
    private String groupOrderNumber;

    @ApiModelProperty(value = "参与拼团的用户标识")
    private Long userId;

    @ApiModelProperty(value = "拼团团长标识")
    private Long groupLeaderId;

    @ApiModelProperty(value = "拼团商品标识")
    private Long goodsSkuId;

    @ApiModelProperty(value = "拼团商品名称")
    private String goodsSkuName;

    @ApiModelProperty(value = "商品原价")
    private BigDecimal goodsPrice;

    @ApiModelProperty(value = "拼团价格")
    private BigDecimal groupBuyingPrice;

    @ApiModelProperty(value = "拼团开始时间")
    private LocalDateTime groupStartTime;

    @ApiModelProperty(value = "拼团结束时间")
    private LocalDateTime groupEndTime;

    @ApiModelProperty(value = "拼团订单状态（进行中，成功，已过期）")
    private Integer groupStatus;

    @ApiModelProperty(value = "拼团活动ID")
    private Long activityId;

    @ApiModelProperty(value = "拼团当前人数")
    private Integer groupNum;

    @ApiModelProperty(value = "拼团总人数")
    private Integer groupTotalNum;

    @ApiModelProperty(value = "分享次数")
    private Integer shareCount;

    @ApiModelProperty(value = "拼团链接")
    private String groupUrl;

    @ApiModelProperty(value = "订单创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "订单更新时间")
    private LocalDateTime updateTime;


}
